package com.yfbao.horizon.docker.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;

@Getter
@Setter
//@Entity
//@EntityInfo(value = "分布式事务历史记录表", isPublic = true)
@Table(name = "ctp_user_trx_history")
public class TrxHistory  {

//    @EntityAttribute(value = "全局唯一事务id")
//    @Column(name = "trx_id", nullable = false, columnDefinition = "SMALLINT COMMENT '全局唯一事务id'")
    private Long trxId;

//    @EntityAttribute(value = "服务名称", excludeFullTextSearch = true)
//    @Column(name = "service_name", nullable = false, columnDefinition = "SMALLINT COMMENT '服务名称'")
    private String serviceName;

//    @EntityAttribute(value = "调用类名", excludeFullTextSearch = true)
//    @Column(name = "class_name", nullable = false, columnDefinition = "SMALLINT COMMENT '调用类名'")
    private String className = "";

//    @EntityAttribute(value = "调用方法名", excludeFullTextSearch = true)
//    @Column(name = "method", nullable = false, columnDefinition = "SMALLINT COMMENT '调用方法名'")
    private String method = "";

    /**
     * 类型： check / doing
     */
//    @EntityAttribute(value = "操作类型", excludeFullTextSearch = true)
//    @Column(name = "type", nullable = false, columnDefinition = "SMALLINT COMMENT '操作类型'")
    private String type = "";

//    @EntityAttribute(value = "业务执行结果", excludeFullTextSearch = true)
//    @Column(name = "task_res", nullable = false, columnDefinition = "SMALLINT COMMENT '业务检查结果'")
    private Boolean taskRes;

}
